import request from '@/utils/request'

// 查询BwScoreOrder列表
export function listBwScoreOrder(query) {
    return request({
        url: '/api/v1/bw/scoreOrderList',
        method: 'get',
        params: query
    })
}

// 查询BwScoreOrder详细
export function getBwScoreOrder (scoreOrderId) {
    return request({
        url: '/api/v1/bw/scoreOrder/' + scoreOrderId,
        method: 'get'
    })
}


// 新增BwScoreOrder
export function addBwScoreOrder(data) {
    return request({
        url: '/api/v1/bw/scoreOrder',
        method: 'post',
        data: data
    })
}

// 修改BwScoreOrder
export function updateBwScoreOrder(data) {
    return request({
        url: '/api/v1/bw/scoreOrder',
        method: 'put',
        data: data
    })
}

// 删除BwScoreOrder
export function delBwScoreOrder(scoreOrderId) {
    return request({
        url: '/api/v1/bw/scoreOrder/' + scoreOrderId,
        method: 'delete'
    })
}

// 打款
export function paymentOrder(scoreOrderId) {
    return request({
        url: `/api/v1/bw/keyToPlay/${scoreOrderId}`,
        method: 'put'
    })
}
